package com.zycloud.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zycloud.facade.DemoFacade;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Reference(version = "${demo.service.version}")
    private DemoFacade demoFacade;


    @RequestMapping("/hello")
    public String hello() {
        String str = demoFacade.sayName("小马哥（11111）");
        System.out.println(str);
        return str;
    }

}
